<template>
	<div id="app">
		<nuxt />
	</div>
</template>

<style>
	/* 增加基本css布局 by chen */
	html,
	body,
	#__nuxt,
	#__layout,
	#app {
		height: 100%;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	/**
	 * 注册全局的页面切换动画
	 * 在需要的组件里写 transition:'need'
	 */
	.need-enter-active,
	.need-leave-active {
		transition: opacity 0.5s;
	}

	.need-enter,
	.need-leave-active {
		opacity: 0;
	}
</style>
